
<script type="text/javascript" src="/js/auth.js"></script>


<div class="container-fluid">
    <div class="row">
        <div class="col-md-offset-4 col-md-4 login-box">
            <ul class="nav">
                <li {{#if login}} class="active" {{/if}}><a href="/login">登录</a></li>
                <li {{#unless login}} class="active" {{/unless}}><a href="/register">注册</a></li>
            </ul>
            <form method="post" action="/login" {{#if login}} class="active login-form" {{/if}}>
                <div class="form-group">
                    <label>用户名</label><input type="text" class="form-control username" name="username" />
                </div>
                <div class="form-group">
                    <label>密码</label><input type="password" class="form-control password" name="password" />
                </div>
                <input type="submit" value="登录" />
            </form>

            <form method="post" action="/register" {{#unless login}} class="active register-form" {{/unless}}>
                <div class="form-group">
                    <label>用户名</label><input name="username" type="text" class="form-control" />
                </div>
                <div class="form-group">
                    <label>密码</label><input name="password" type="password" class="form-control" />
                </div>
                <input type="submit" value="注册" />
            </form>
        </div>
    </div>
</div>